<h3>
    {if !$smarty.cookies.close_cg1 or $smarty.cookies.close_cg1 == '0'}
        <div id="cg1" class="closeGroup" onclick="closeDialog('cg1');">Details</div>
        <div id="cg1_alt" class="openGroup" onclick="openDialog('cg1');" style="display: none;">Details</div>
    {else}
        <div id="cg1" class="closeGroup" onclick="closeDialog('cg1');" style="display: none;">Details</div>
        <div id="cg1_alt" class="openGroup" onclick="openDialog('cg1');">Details</div>
    {/if}
</h3>

<div class="infoBox" id="cg1_data" {if $smarty.cookies.close_cg1}style="display: none;"{/if}>
	<div class="nodeTitle" id="nodeTitle">
	   {$data.title}
	</div>
	
	<div class="nodeDesc">{$data.type}</div>
	<div class="nodeDates">Created: {$data.intime|date_format:'%e %b, %Y %H:%M'}</div>
	<div class="nodeDates">Modified: {$data.modtime|date_format:'%e %b, %Y %H:%M'|default:"n/a"}</div>

	{if !$page}
	   <div class="nodeID">Node ID: {$data.id}</div>
	{/if}
	
	{if $data.url}
	<div class="nodeURL">
	   URL: <a href="javascript: changeURL({$data.id},{if $page}1{else}0{/if},'{$data.url|replace:'.html':''}');"><span id="CHPU">{$data.url|default:'n/a'|truncate:32:'...'}</span></a>
	   <a href="{$INA.root}{$data.path}" target="_blank" class="external">&nbsp;&nbsp;&nbsp;</a>
	</div>
        {/if}
        
	<div class="nodeAccess" {if !$data.pageid}style="display: none;"{/if}>
	<!-- <strong>Owner:</strong> {$data.uname} <span class="grey">(ID: {$data.uid|default:"n/a"})</span><br /> -->
	<strong>Page ID:</strong> {$data.pageid}<br />
	</div>
	
	{if $sidebarInfo}
	<div class="sidebarInfo">
        {$sidebarInfo}
	</div>
	{/if}
	
	<!--
	<div class="wfstate">
	<strong>Workflow State:</strong> n/a
	</div>
	-->
</div>

<h3>
    {if !$smarty.cookies.close_cg2 or $smarty.cookies.close_cg2 == '0'}
        <div id="cg2" class="closeGroup" onclick="closeDialog('cg2');">Options</div>
        <div id="cg2_alt" class="openGroup" onclick="openDialog('cg2');" style="display: none;">Options</div>
    {else}
        <div id="cg2" class="closeGroup" onclick="closeDialog('cg2');" style="display: none;">Options</div>
        <div id="cg2_alt" class="openGroup" onclick="openDialog('cg2');">Options</div>
    {/if}
</h3>

<div class="infoBox" id="cg2_data" {if $smarty.cookies.close_cg2}style="display: none;"{/if}>
    {if $page}
    	<ul>
    	    <li id="edit"><a href="javascript: loadPageEdit({$data.id});">Edit</a></li>
    		<li id="rename"><a href="javascript: updatePage({$data.id},'pageRow{$data.id}');">Rename</a></li>
    		<li id="delete"><a href="#" onClick="return dropPage({$data.id},'Are You Sure You Want To Delete The Page: {$data.title}?');">Delete</a></li>
			<li id="copy"><a href="#" onClick="return copyPage({$data.id},'{$data.title}');">Copy</a></li>
			<li id="clone"><a href="#" onClick="return clonePage({$data.id},'{$data.title}');">Clone</a></li>
    	</ul>
	{else}
	   <ul>
	        <li id="edit"><a href="javascript: loadNodeEdit({$data.id});">Edit</a></li>
	        
	        {if !$nodel}
    		  <li id="rename"><a href="javascript: update({$data.id},'row{$data.id}');">Rename</a></li>
    		{/if}
    		<!--
    		<li id="move">Move</li>
    		<li id="copy">Copy</li>
    		-->
    		{if $data.path != "/" and !$nodel}
    		  <li id="delete"><a href="#" onClick="return dropNode({$data.id},'Are You Sure You Want To Delete The Folder: {$data.title}?');">Delete</a></li>
    		{/if}
    	</ul>
	{/if}
</div>